package net.yla.smartbus.module.ba.employee.service;

import com.alibaba.fastjson.JSONObject;
import net.yla.smartbus.core.base.PageBean;
import net.yla.smartbus.module.ba.employee.dto.EmployeeDto;
import net.yla.smartbus.module.ba.employee.entity.EmployeeEntity;
import net.yla.smartbus.module.ba.employee.query.EmployeeQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @description:
 * @author: Yee
 * @date: 2021/6/17 14:50
 */
public interface EmployeeService {

    PageBean<EmployeeEntity> findEmp(EmployeeQuery query);

    int delPersons(List<Integer> personIds);

    int editPerson(HttpServletRequest request,EmployeeEntity employeeEntity);

    void exportEmployees(HttpServletResponse response, EmployeeQuery query);

    void exportPersonTemplate(HttpServletResponse response);

    int uploadPerson(HttpServletRequest request, MultipartFile file);
}
